Skip to content

fix(release): publish Docker semver tags - #24

Merged
baragoon merged 1 commit into
masterfrom
fix/docker-image-semver-tags
Nov 26, 2026
Merged

baragoon merged 1 commit into
masterfrom
fix/docker-image-semver-tags

Conversation

@baragoon

@baragoon baragoon commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Publish Docker images with full, major, and minor semver tags.
  • Keep the README tag documentation in sync; metadata-action also generates latest for semver tags.

Validation

  • git -c core.whitespace=cr-at-eol diff --check

Summary by Sourcery

Publish Docker release images with consistent semantic-version aliases and document the supported tags.

New Features:

  • Publish release container images with full, major, and minor semantic-version tags alongside the generated latest tag.

Enhancements:

  • Update the README to document the available Docker image version tags.

Summary by CodeRabbit

  • Changes
    • Release images are tagged with the full version (vX.Y.Z) and version aliases for the major (vX) and major/minor (vX.Y) releases.
    • The latest image tag is no longer published.
  • Documentation
    • Updated the release image tag documentation to describe the version and alias formats.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release workflow now generates version-based Docker image tags and uses them in the build step. The README documents the full-version, major-version, and minor-version tags, along with latest.

Changes: Release image tags

Layer / File(s) Summary
Tag generation and publication
.github/workflows/release-please.yaml, README.md
The workflow generates raw-version, major-version, and major/minor-version tags. The build step uses the generated tags instead of explicitly setting the release tag and latest. The README documents the version tags and latest.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: Minimal · up to 75dda

The release workflow now publishes full-version, major-version and minor-version Docker tags, and the README describes them. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(release): publish Docker semver tags" matches the main change. The release-please workflow's publish-image job now uses docker/metadata-action to generate full, major, and minor semver …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(release): publish Docker semver tags" matches the main change. The release-please workflow's publish-image job now uses docker/metadata-action to generate full, major, and minor semver tags instead of only the release tag and latest. The README was updated to document these tags. The title is short, specific, and uses a conventional-commit scope. It does not mention the README update, which is a minor secondary change.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the tags at night
Full versions hop into the light
Major and minor follow near
The README makes their names quite clear
I nibble carrots, pleased with cheer

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e304c403-98cc-44cb-b710-72c96f304bb9
Commits

Reviewing files that changed from the base of the PR and between ab92e53 and 75dda72.

Files selected for processing: 2

  • .github/workflows/release-please.yaml
  • README.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@sourcery-ai

sourcery-ai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Generate full, major, and minor Docker semver tags from the release tag and use them when publishing the image.

  • .github/workflows/release-please.yaml L49-58, L77

Documentation

Document the full-version, major, minor, and latest tags available for release images.

  • README.md L124

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@baragoon
baragoon merged commit 45783cd into master Nov 26, 2026
4 checks passed
@baragoon
baragoon deleted the fix/docker-image-semver-tags branch November 26, 2026 13:44

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 2 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/workflows/release-please.yaml" line_range="56-57" />
<code_context>
+          images: ${{ steps.image.outputs.name }}
+          tags: |
+            type=semver,pattern={{raw}},value=${{ needs.release_please.outputs.tag_name }}
+            type=semver,pattern=v{{major}},value=${{ needs.release_please.outputs.tag_name }}
+            type=semver,pattern=v{{major}}.{{minor}},value=${{ needs.release_please.outputs.tag_name }}
+
       - uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4
</code_context>
<issue_to_address>
**Older releases replace newer aliases**

When publishing runs for releases sharing a major or minor version overlap, or an older run is rerun after a newer release, the older build can finish last and push its image to shared `v<major>`, `v<major>.<minor>`, and `latest` tags, replacing the newer image; consumers pulling those aliases receive an outdated release.

Only let the newest release publish the shared aliases, including `latest`.
</issue_to_address>

### Comment 2
<location path=".github/workflows/release-please.yaml" line_range="77" />
<code_context>
-          tags: |
-            ${{ steps.image.outputs.name }}:${{ needs.release_please.outputs.tag_name }}
-            ${{ steps.image.outputs.name }}:latest
+          tags: ${{ steps.meta.outputs.tags }}
           labels: |
             org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
</code_context>
<issue_to_address>
**Interrupted push leaves tags inconsistent**

When the registry push fails after accepting only some of the requested tags, buildx can push some tags before a registry or network error interrupts the remaining pushes, leaving the full version, aliases, and `latest` pointing at different images; the failed run does not roll back or retry the tags already pushed.

Add a retry or reconciliation step that republishes all tags for the release after a partial push.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 2 findings to address first, and the release workflow stops updating latest, so consumers of that tag can keep pulling an older image, while the new version aliases are published to the registry. Reverting the workflow does not undo tags already published, but they can be retagged or removed.

Blocking findings: .github/workflows/release-please.yaml:57, .github/workflows/release-please.yaml:77


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment on lines +56 to +57
type=semver,pattern=v{{major}},value=${{ needs.release_please.outputs.tag_name }}
type=semver,pattern=v{{major}}.{{minor}},value=${{ needs.release_please.outputs.tag_name }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Older releases replace newer aliases

When publishing runs for releases sharing a major or minor version overlap, or an older run is rerun after a newer release, the older build can finish last and push its image to shared v<major>, v<major>.<minor>, and latest tags, replacing the newer image; consumers pulling those aliases receive an outdated release.

Only let the newest release publish the shared aliases, including latest.

Prompt for AI agents
In `.github/workflows/release-please.yaml` at lines 56-57:

**Older releases replace newer aliases**

When publishing runs for releases sharing a major or minor version overlap, or an older run is rerun after a newer release, the older build can finish last and push its image to shared `v<major>`, `v<major>.<minor>`, and `latest` tags, replacing the newer image; consumers pulling those aliases receive an outdated release.

Only let the newest release publish the shared aliases, including `latest`.

tags: |
${{ steps.image.outputs.name }}:${{ needs.release_please.outputs.tag_name }}
${{ steps.image.outputs.name }}:latest
tags: ${{ steps.meta.outputs.tags }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Interrupted push leaves tags inconsistent

When the registry push fails after accepting only some of the requested tags, buildx can push some tags before a registry or network error interrupts the remaining pushes, leaving the full version, aliases, and latest pointing at different images; the failed run does not roll back or retry the tags already pushed.

Add a retry or reconciliation step that republishes all tags for the release after a partial push.

Prompt for AI agents
In `.github/workflows/release-please.yaml` at line 77:

**Interrupted push leaves tags inconsistent**

When the registry push fails after accepting only some of the requested tags, buildx can push some tags before a registry or network error interrupts the remaining pushes, leaving the full version, aliases, and `latest` pointing at different images; the failed run does not roll back or retry the tags already pushed.

Add a retry or reconciliation step that republishes all tags for the release after a partial push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant